package scau.mis4.chanyulin.entity;

import scau.mis4.chanyulin.base.common.Unique;

import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by cyl on 2018/03/27.
 * Stock实体类
 */
public class Stock extends Unique {

    private String repositId;

    private Integer count;

    // ----------------------------------

    @Transient
    private Reposit reposit;

    // ----------------------------------

    public Stock() {
    }

    public Stock(String repositId, Integer count) {
        this.repositId = repositId;
        this.count = count;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "repositId='" + repositId + '\'' +
                ", count=" + count +
                ", reposit=" + reposit +
                ", id='" + id + '\'' +
                '}';
    }

    public String getRepositId() {
        return repositId;
    }

    public void setRepositId(String repositId) {
        this.repositId = repositId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Reposit getReposit() {
        return reposit;
    }

    public void setReposit(Reposit reposit) {
        this.reposit = reposit;
    }
}
